"""
前端资讯中心模块
"""
from basic.base_request import baseFrontRequest


class URL:
    front_article_Center = '/api/front/article/list/0'
    front_article_One = '/api/front/article/info'
class FrontStreet(baseFrontRequest,URL):
    def front_article_center(self):
        params = {
            'page': '1',
            'limit': '10',
            'cid': '0',
        }
        return self.get(self.front_article_center.__name__,self.front_article_Center,params)
    def front_article_one(self,front_article_one_id=None):
        json_data = {}
        url = self.front_article_One + f"/{front_article_one_id}"
        return self.get(self.front_article_one.__name__,url,json_data)
